const ADDRESS_INFO = 'address_info'

const state = {
    addressInfo:  uni.getStorageSync(ADDRESS_INFO) || {}
}

const mutations = {
    SET_ADDRESS(state, data) {
        // console.log(9, data)
        state.addressInfo = { ...data }
        uni.setStorageSync(ADDRESS_INFO, data);
    }
}

const actions = {}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}